<%--
  Created by IntelliJ IDEA.
  User: 79921
  Date: 2021/12/3
  Time: 23:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>

</head>
<body>
    <button type="button" onclick="exportExcel()">提交</button>

<script>
        function exportExcel(){
        location.href="/DownExcel";
        <!--这里不能用ajax请求，ajax请求无法弹出下载保存对话框-->
      }
</script>
</body>
</html>